package com.photoeditor.demo.model.subscribe.strategy;

import android.support.annotation.NonNull;

import com.common.commercialize.strategy.StrategyManager;
import com.photoeditor.demo.ad.CameraStrategyConstant;
import com.photoeditor.demo.app.TestUser;
import com.photoeditor.demo.model.preference.SPDataManager;
import com.photoeditor.demo.model.subscribe.manager.SkuManager;

public class SkuStrategyManager {

    @NonNull
    public static SkuStrategyBean.SkuStrategyBeanConfig getSkuStrategyConfig() {
        SkuStrategyBean.SkuStrategyBeanConfig skuStrategyConfig = StrategyManager.getInstance().getStrategyFirstConfig(CameraStrategyConstant.FUN_ID_SKU, SkuStrategyBean.class);
        if (skuStrategyConfig == null) {
            //设置默认的值
            skuStrategyConfig = new SkuStrategyBean.SkuStrategyBeanConfig();
            skuStrategyConfig.setAnnualType(SkuManager.SKU_YEARLY_NORMAL);
            skuStrategyConfig.setMonthType(SkuManager.SKU_MONTHLY_NORMAL);
        }
        return skuStrategyConfig;
    }
}
